package com.nhim.cms.admin.server;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;

public class SpringServiceLocator implements ServiceLocator {

	@Override
	  public Object getInstance(Class<?> clazz) {
	    try {
	      return clazz.newInstance();
	    } catch (InstantiationException e) {
	      throw new RuntimeException(e);
	    } catch (IllegalAccessException e) {
	      throw new RuntimeException(e);
	    }
	  }

}
